package com.hhxyjsj.model;

public class PassengerInfo {	
	
	/**
	 * 乘客信息
	 */
	private String passengerName;//姓名
	
	private String mobileNo;//移动电话	
	
	/**
	 * 1 二代身份证
	 * 2 一代身份证
	 * C 港澳通行证
	 * G 台湾通行证
	 * B 护照
	 */
	private String cardType;//身份证明类型
	
	private String cardNo;//证件号码
	
	/*
	 * 坐位类型
	 * 3 硬卧,1 硬座,4 软卧
	 */
	private String seatType;
		
	/* 
	 * 支付方式
	 * A 网上支付<span>须在规定时间内完成支付，快捷进站乘车
	 * B 网上预订<span>须在规定时间内取票，否则铁路将不予以保留席位
	 */
	private String reserveFlag;

	/*
	 * 车票类型
	 * 1 成人票,2 儿童票 3 学生票 4 残军票
	 */ 
	private String ticketType;
	
	private String token;//令牌
	
	/**
	 * 车票信息:
	 * "坐位类型,车票类型,乘客姓名,身份证件类型,身份证件号码,移动电话号码,是否保存联系人"
	 * 1,1,舒二毛,1,431223198602283013,13520791933,N
	 */
	private String passengerTickets;
	
	/**
	 * 
	 * @param passengerName 乘客姓名
	 * @param mobileNo 移动电话号码
	 * @param cardType 身证证件类型:  1 二代身份证,2 一代身份证,C 港澳通行证,G 台湾通行证,B 护照
	 * @param cardNo 证件号码
	 * @param seatType 坐位类型: 3 硬卧,1 硬座,4 软卧
	 * @param reserveFlag 支付方式:A网上支付 B网上预订
	 * @param ticketType 车票类型: 1 成人票,2 儿童票 3 学生票 4 残军票
	 * @param token 令牌
	 */
	public PassengerInfo(String passengerName, String mobileNo, String cardType,
			String cardNo, String seatType, String reserveFlag, 
			String ticketType,String token) {
		super();
		this.passengerName = passengerName;
		this.mobileNo = mobileNo;
		this.cardType = cardType;
		this.cardNo = cardNo;
		this.seatType = seatType;
		this.reserveFlag = reserveFlag;
		this.ticketType = ticketType;
		this.token = token;
	}

	public String getpassengerName() {
		return passengerName;
	}

	public void setPassengerName(String passengerName) {
		this.passengerName = passengerName;
	}

	public String getMobileNo() {
		return mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getSeatType() {
		return seatType;
	}

	public void setSeatType(String seatType) {
		this.seatType = seatType;
	}

	public String getReserveFlag() {
		return reserveFlag;
	}

	public void setReserveFlag(String reserveFlag) {
		this.reserveFlag = reserveFlag;
	}

	public String getTicketType() {
		return ticketType;
	}

	public void setTicketType(String ticketType) {
		this.ticketType = ticketType;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	/**
	 * 车票信息:
	 * "坐位类型,车票类型,乘客姓名,身份证件类型,身份证件号码,移动电话号码,是否保存联系人"
	 * 1,1,舒二毛,1,431223198602283013,13520791933,N
	 */
	public String getPassengerTickets() {
		passengerTickets = this.getSeatType() + "," 
						 + this.getTicketType() + ","
						 + this.getpassengerName() + ","
						 + this.getCardType() + ","
						 + this.getCardNo() + ","
						 + this.getMobileNo() + ",Y";
		return passengerTickets;
	}
}  